# 局部属性值定位
# 写法： //*[contains(@属性名,"局部属性值")]
# 语法： 浏览器对象.find_element(by=By.XPATH,value="xpath表达式")

# 导包
import time

from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get("http://121.43.169.97:8848/pageA.html")

driver.find_element(By.XPATH, "//*[contains(@id,'userA')]").send_keys("admin")

time.sleep(2)
driver.quit()
